Webflow Session

CAS uses Spring Webflow to manage the authentication sequence. Spring Webflow provides a pluggable architecture whereby various actions, decisions and operations throughout the primary authentication workflow can be easily controlled and navigated. In order for this navigation to work, some form of conversational session state must be maintained.

Provides information about the application’s HTTP sessions that are managed by Spring Session.

SessionsEndpoint.deleteSession(java.lang.String)

org.springframework.boot.actuate.session.SessionsEndpoint

Provides information about the application’s HTTP sessions that are managed by Spring Session.

SessionDescriptor

SessionsEndpoint.getSession(java.lang.String)

org.springframework.boot.actuate.session.SessionsEndpoint

Provides information about the application’s HTTP sessions that are managed by Spring Session.

SessionsReport

SessionsEndpoint.sessionsForUsername(java.lang.String)

org.springframework.boot.actuate.session.SessionsEndpoint


Client-side Sessions

CAS provides a facility for storing flow execution state on the client in Spring Webflow. Flow state is stored as an encoded byte stream in the flow execution identifier provided to the client when rendering a view. By default, CAS automatically attempts to store and keep track of this state on the client in an encrypted form via encryption and signing keys to remove the need for session cleanup, termination and replication.

The following settings and properties are available from the CAS configuration catalog:

The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

  • cas.webflow.crypto.encryption.key=
  • The encryption key. The encryption key by default and unless specified otherwise must be randomly-generated string whose length is defined by the encryption key size setting.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedCryptoProperties.

  • cas.webflow.crypto.signing.key=
  • The signing key is a JWT whose length is defined by the signing key size setting.

    org.apereo.cas.configuration.model.core.util.SigningJwtCryptoProperties.

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value.

  • cas.webflow.crypto.alg=AES
  • The signing/encryption algorithm to use.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

  • cas.webflow.crypto.enabled=true
  • Whether crypto operations are enabled.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

  • cas.webflow.crypto.encryption.key-size=16
  • Encryption key size.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedCryptoProperties.

  • cas.webflow.crypto.signing.key-size=512
  • The signing key size.

    org.apereo.cas.configuration.model.core.util.SigningJwtCryptoProperties.

  • cas.webflow.session.compress=false
  • Whether or not the snapshots should be compressed.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.hz-location=
  • If sessions are to be replicated via Hazelcast, defines the location of a hazelcast.xml file that defines how state should be replicated. Only relevant if session storage is done on the server.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.lock-timeout=PT30S
  • Sets the time period that can elapse before a timeout occurs on an attempt to acquire a conversation lock. The default is 30 seconds. Only relevant if session storage is done on the server.

    This settings supports the java.time.Duration syntax [?].

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.max-conversations=5
  • Using the maxConversations property, you can limit the number of concurrently active conversations allowed in a single session. If the maximum is exceeded, the conversation manager will automatically end the oldest conversation. The default is 5, which should be fine for most situations. Set it to -1 for no limit. Setting maxConversations to 1 allows easy resource cleanup in situations where there should only be one active conversation per session. Only relevant if session storage is done on the server.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.storage=false
  • Controls whether spring webflow sessions are to be stored server-side or client side. By default state is managed on the client side, that is also signed and encrypted.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.crypto.encryption.key=
  • The encryption key. The encryption key by default and unless specified otherwise must be randomly-generated string whose length is defined by the encryption key size setting.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedCryptoProperties.

  • cas.webflow.crypto.signing.key=
  • The signing key is a JWT whose length is defined by the signing key size setting.

    org.apereo.cas.configuration.model.core.util.SigningJwtCryptoProperties.

  • cas.webflow.crypto.alg=AES
  • The signing/encryption algorithm to use.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

  • cas.webflow.crypto.enabled=true
  • Whether crypto operations are enabled.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties.

  • cas.webflow.crypto.encryption.key-size=16
  • Encryption key size.

    org.apereo.cas.configuration.model.core.util.EncryptionRandomizedCryptoProperties.

  • cas.webflow.crypto.signing.key-size=512
  • The signing key size.

    org.apereo.cas.configuration.model.core.util.SigningJwtCryptoProperties.

    This CAS feature is able to accept signing and encryption crypto keys. In most scenarios if keys are not provided, CAS will auto-generate them. The following instructions apply if you wish to manually and beforehand create the signing and encryption keys.

    Note that if you are asked to create a JWK of a certain size for the key, you are to use the following set of commands to generate the token:

    1
    2
    
    wget https://raw.githubusercontent.com/apereo/cas/master/etc/jwk-gen.jar
    java -jar jwk-gen.jar -t oct -s [size]
    

    The outcome would be similar to:

    1
    2
    3
    4
    5
    
    {
      "kty": "oct",
      "kid": "...",
      "k": "..."
    }
    

    The generated value for k needs to be assigned to the relevant CAS settings. Note that keys generated via the above algorithm are processed by CAS using the Advanced Encryption Standard (AES) algorithm which is a specification for the encryption of electronic data established by the U.S. National Institute of Standards and Technology.


    Configuration Metadata

    The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

    Be Selective

    This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

    YAGNI

    Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

    Naming Convention

    Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc. When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value.S ettings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

    Validation

    Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. The validation process is on by default and can be skipped on startup using a special system property SKIP_CONFIG_VALIDATION that should be set to true. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

    Indexed Settings

    CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.

    In the event that keys are not generated by the deployer, CAS will attempt to auto-generate keys and will output the result for each respected key. The deployer MUST attempt to copy the generated keys to their CAS properties file, specially when running a multi-node CAS deployment. Failure to do so will prevent CAS to appropriate decrypt and encrypt the webflow state and will prevent successful single sign-on.

    Usage Warning!

    While the above settings are all optional, it is recommended that you provide your own configuration and settings for encrypting and transcoding of the web session state.

    Server-side Sessions

    In the event that you wish to use server-side session storage for managing t he webflow session, you will need to enable this behavior via CAS properties.

    The following settings and properties are available from the CAS configuration catalog:

    The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value.

  • cas.webflow.session.compress=false
  • Whether or not the snapshots should be compressed.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.hz-location=
  • If sessions are to be replicated via Hazelcast, defines the location of a hazelcast.xml file that defines how state should be replicated. Only relevant if session storage is done on the server.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.lock-timeout=PT30S
  • Sets the time period that can elapse before a timeout occurs on an attempt to acquire a conversation lock. The default is 30 seconds. Only relevant if session storage is done on the server.

    This settings supports the java.time.Duration syntax [?].

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.max-conversations=5
  • Using the maxConversations property, you can limit the number of concurrently active conversations allowed in a single session. If the maximum is exceeded, the conversation manager will automatically end the oldest conversation. The default is 5, which should be fine for most situations. Set it to -1 for no limit. Setting maxConversations to 1 allows easy resource cleanup in situations where there should only be one active conversation per session. Only relevant if session storage is done on the server.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

  • cas.webflow.session.storage=false
  • Controls whether spring webflow sessions are to be stored server-side or client side. By default state is managed on the client side, that is also signed and encrypted.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

    The configuration settings listed below are tagged as Third Party in the CAS configuration metadata. This flag indicates that the configuration setting is not controlled, owned or managed by the CAS ecosystem, and affects functionality that is offered by a third-party library, such as Spring Boot or Spring Cloud to CAS. For additional info, you might have to visit the third-party source to find more details.

  • spring.session.hazelcast.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.map-name=spring:session:sessions
  • Name of the map used to store sessions.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.jdbc.cleanup-cron=0 * * * * *
  • Cron expression for expired session cleanup job.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.initialize-schema=embedded
  • Database schema initialization mode.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql
  • Path to the SQL file to use to initialize the database schema.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.table-name=SPRING_SESSION
  • Name of the database table used to store sessions.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.mongodb.collection-name=sessions
  • Collection name used to store sessions.

    org.springframework.boot.autoconfigure.session.MongoSessionProperties.

  • spring.session.redis.cleanup-cron=0 * * * * *
  • Cron expression for expired session cleanup job.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.configure-action=notify-keyspace-events
  • The configure action to apply when no user defined ConfigureRedisAction bean is present.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.namespace=spring:session
  • Namespace for keys used to store sessions.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.servlet.filter-dispatcher-types=asyncerrorrequest
  • Session repository filter dispatcher types.

    org.springframework.boot.autoconfigure.session.SessionProperties$Servlet.

  • spring.session.servlet.filter-order=
  • Session repository filter order.

    org.springframework.boot.autoconfigure.session.SessionProperties$Servlet.

  • spring.session.store-type=
  • Session store type.

    org.springframework.boot.autoconfigure.session.SessionProperties.

  • spring.session.timeout=
  • Session timeout. If a duration suffix is not specified, seconds will be used.

    org.springframework.boot.autoconfigure.session.SessionProperties.

    Configuration Metadata

    The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

    Be Selective

    This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

    YAGNI

    Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

    Naming Convention

    Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc. When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value.S ettings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

    Validation

    Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. The validation process is on by default and can be skipped on startup using a special system property SKIP_CONFIG_VALIDATION that should be set to true. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

    Indexed Settings

    CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.

    Doing so will likely require you to also enable sticky sessions and/or session replication in a clustered deployment of CAS.

    Usage Warning!

    Generally speaking, you do not need to enable server-side sessions unless you have a rather specialized deployment or are in need of features that store bits and pieces of data into a sever-backed session object. It is recommended that you stick with the default client-side session storage and only switch if and when mandated by a specific CAS behavior.

    Hazelcast Session Replication

    If you don’t wish to use the native container’s strategy for session replication, you can use CAS’s support for Hazelcast session replication.

    This feature is enabled via the following module:

    1
    2
    3
    4
    5
    
    <dependency>
      <groupId>org.apereo.cas</groupId>
      <artifactId>cas-server-support-session-hazelcast</artifactId>
      <version>${cas.version}</version>
    </dependency>
    
    1
    
    implementation "org.apereo.cas:cas-server-support-session-hazelcast:${project.'cas.version'}"
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    dependencyManagement {
      imports {
        mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
      }
    }
    
    dependencies {  
      implementation "org.apereo.cas:cas-server-support-session-hazelcast"
    }
    

    The following settings and properties are available from the CAS configuration catalog:

    The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value.

  • cas.webflow.session.hz-location=
  • If sessions are to be replicated via Hazelcast, defines the location of a hazelcast.xml file that defines how state should be replicated. Only relevant if session storage is done on the server.

    org.apereo.cas.configuration.model.core.web.flow.WebflowSessionManagementProperties.

    The configuration settings listed below are tagged as Third Party in the CAS configuration metadata. This flag indicates that the configuration setting is not controlled, owned or managed by the CAS ecosystem, and affects functionality that is offered by a third-party library, such as Spring Boot or Spring Cloud to CAS. For additional info, you might have to visit the third-party source to find more details.

  • spring.session.hazelcast.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.map-name=spring:session:sessions
  • Name of the map used to store sessions.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.map-name=spring:session:sessions
  • Name of the map used to store sessions.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

  • spring.session.hazelcast.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.HazelcastSessionProperties.

    Configuration Metadata

    The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

    Be Selective

    This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

    YAGNI

    Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

    Naming Convention

    Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc. When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value.S ettings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

    Validation

    Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. The validation process is on by default and can be skipped on startup using a special system property SKIP_CONFIG_VALIDATION that should be set to true. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

    Indexed Settings

    CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.

    Redis Session Replication

    If you don’t wish to use the native container’s strategy for session replication, you can use CAS’s support for Redis session replication.

    This feature is enabled via the following module:

    1
    2
    3
    4
    5
    
    <dependency>
      <groupId>org.apereo.cas</groupId>
      <artifactId>cas-server-support-session-redis</artifactId>
      <version>${cas.version}</version>
    </dependency>
    
    1
    
    implementation "org.apereo.cas:cas-server-support-session-redis:${project.'cas.version'}"
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    dependencyManagement {
      imports {
        mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
      }
    }
    
    dependencies {  
      implementation "org.apereo.cas:cas-server-support-session-redis"
    }
    

    The following settings and properties are available from the CAS configuration catalog:

    The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value.

    The configuration settings listed below are tagged as Third Party in the CAS configuration metadata. This flag indicates that the configuration setting is not controlled, owned or managed by the CAS ecosystem, and affects functionality that is offered by a third-party library, such as Spring Boot or Spring Cloud to CAS. For additional info, you might have to visit the third-party source to find more details.

  • spring.redis.client-name=
  • Client name to be set on connections with CLIENT SETNAME.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.client-type=
  • Type of client to use. By default, auto-detected according to the classpath.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.cluster.max-redirects=
  • Maximum number of redirects to follow when executing commands across the cluster.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Cluster.

  • spring.redis.cluster.nodes=
  • Comma-separated list of "host:port" pairs to bootstrap from. This represents an "initial" list of cluster nodes and is required to have at least one entry.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Cluster.

  • spring.redis.connect-timeout=
  • Connection timeout.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.database=0
  • Database index used by the connection factory.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.host=localhost
  • Redis server host.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.jedis.pool.max-active=8
  • Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.jedis.pool.max-idle=8
  • Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.jedis.pool.max-wait=-1ms
  • Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.jedis.pool.min-idle=0
  • Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if both it and time between eviction runs are positive.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.jedis.pool.time-between-eviction-runs=
  • Time between runs of the idle object evictor thread. When positive, the idle object evictor thread starts, otherwise no idle object eviction is performed.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.lettuce.cluster.refresh.adaptive=false
  • Whether adaptive topology refreshing using all available refresh triggers should be used.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Lettuce$Cluster$Refresh.

  • spring.redis.lettuce.cluster.refresh.dynamic-refresh-sources=true
  • Whether to discover and query all cluster nodes for obtaining the cluster topology. When set to false, only the initial seed nodes are used as sources for topology discovery.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Lettuce$Cluster$Refresh.

  • spring.redis.lettuce.cluster.refresh.period=
  • Cluster topology refresh period.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Lettuce$Cluster$Refresh.

  • spring.redis.lettuce.pool.max-active=8
  • Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.lettuce.pool.max-idle=8
  • Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.lettuce.pool.max-wait=-1ms
  • Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.lettuce.pool.min-idle=0
  • Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if both it and time between eviction runs are positive.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.lettuce.pool.time-between-eviction-runs=
  • Time between runs of the idle object evictor thread. When positive, the idle object evictor thread starts, otherwise no idle object eviction is performed.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Pool.

  • spring.redis.lettuce.shutdown-timeout=100ms
  • Shutdown timeout.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Lettuce.

  • spring.redis.password=
  • Login password of the redis server.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.port=6379
  • Redis server port.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.sentinel.master=
  • Name of the Redis server.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Sentinel.

  • spring.redis.sentinel.nodes=
  • Comma-separated list of "host:port" pairs.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Sentinel.

  • spring.redis.sentinel.password=
  • Password for authenticating with sentinel(s).

    org.springframework.boot.autoconfigure.data.redis.RedisProperties$Sentinel.

  • spring.redis.ssl=false
  • Whether to enable SSL support.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.timeout=
  • Read timeout.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.url=
  • Connection URL. Overrides host, port, and password. User is ignored. Example: redis://user:password@example.com:6379

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.redis.username=
  • Login username of the redis server.

    org.springframework.boot.autoconfigure.data.redis.RedisProperties.

  • spring.session.redis.cleanup-cron=0 * * * * *
  • Cron expression for expired session cleanup job.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.configure-action=notify-keyspace-events
  • The configure action to apply when no user defined ConfigureRedisAction bean is present.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.namespace=spring:session
  • Namespace for keys used to store sessions.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

  • spring.session.redis.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.RedisSessionProperties.

    Configuration Metadata

    The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

    Be Selective

    This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

    YAGNI

    Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

    Naming Convention

    Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc. When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value.S ettings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

    Validation

    Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. The validation process is on by default and can be skipped on startup using a special system property SKIP_CONFIG_VALIDATION that should be set to true. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

    Indexed Settings

    CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.

    MongoDb Session Replication

    If you don’t wish to use the native container’s strategy for session replication, you can use CAS’s support for Mongo session replication.

    This feature is enabled via the following module:

    1
    2
    3
    4
    5
    
    <dependency>
      <groupId>org.apereo.cas</groupId>
      <artifactId>cas-server-support-session-mongo</artifactId>
      <version>${cas.version}</version>
    </dependency>
    
    1
    
    implementation "org.apereo.cas:cas-server-support-session-mongo:${project.'cas.version'}"
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    dependencyManagement {
      imports {
        mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
      }
    }
    
    dependencies {  
      implementation "org.apereo.cas:cas-server-support-session-mongo"
    }
    

    The following settings and properties are available from the CAS configuration catalog:

    The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value.

    The configuration settings listed below are tagged as Third Party in the CAS configuration metadata. This flag indicates that the configuration setting is not controlled, owned or managed by the CAS ecosystem, and affects functionality that is offered by a third-party library, such as Spring Boot or Spring Cloud to CAS. For additional info, you might have to visit the third-party source to find more details.

  • spring.data.mongodb.authentication-database=
  • Authentication database name.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.auto-index-creation=
  • Whether to enable auto-index creation.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.database=
  • Database name.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.field-naming-strategy=
  • Fully qualified name of the FieldNamingStrategy to use.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.grid-fs-database=
  • org.springframework.boot.autoconfigure.mongo.MongoProperties.

    Deprecation status is WARNING with a replacement setting: spring.data.mongodb.gridfs.database.

  • spring.data.mongodb.gridfs.bucket=
  • GridFS bucket name.

    org.springframework.boot.autoconfigure.mongo.MongoProperties$Gridfs.

  • spring.data.mongodb.gridfs.database=
  • GridFS database name.

    org.springframework.boot.autoconfigure.mongo.MongoProperties$Gridfs.

  • spring.data.mongodb.host=
  • Mongo server host. Cannot be set with URI.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.password=
  • Login password of the mongo server. Cannot be set with URI.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.port=
  • Mongo server port. Cannot be set with URI.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.replica-set-name=
  • Required replica set name for the cluster. Cannot be set with URI.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.repositories.type=auto
  • Type of Mongo repositories to enable.

  • spring.data.mongodb.uri=mongodb://localhost/test
  • Mongo database URI. Cannot be set with host, port, credentials and replica set name.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.username=
  • Login user of the mongo server. Cannot be set with URI.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.data.mongodb.uuid-representation=java-legacy
  • Representation to use when converting a UUID to a BSON binary value.

    org.springframework.boot.autoconfigure.mongo.MongoProperties.

  • spring.session.mongodb.collection-name=sessions
  • Collection name used to store sessions.

    org.springframework.boot.autoconfigure.session.MongoSessionProperties.

    Configuration Metadata

    The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

    Be Selective

    This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

    YAGNI

    Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

    Naming Convention

    Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc. When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value.S ettings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

    Validation

    Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. The validation process is on by default and can be skipped on startup using a special system property SKIP_CONFIG_VALIDATION that should be set to true. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

    Indexed Settings

    CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.

    JDBC Session Replication

    If you don’t wish to use the native container’s strategy for session replication, you can use CAS’s support for JDBC session replication.

    This feature is enabled via the following module:

    1
    2
    3
    4
    5
    
    <dependency>
      <groupId>org.apereo.cas</groupId>
      <artifactId>cas-server-support-session-jdbc</artifactId>
      <version>${cas.version}</version>
    </dependency>
    
    1
    
    implementation "org.apereo.cas:cas-server-support-session-jdbc:${project.'cas.version'}"
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    dependencyManagement {
      imports {
        mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
      }
    }
    
    dependencies {  
      implementation "org.apereo.cas:cas-server-support-session-jdbc"
    }
    

    The following settings and properties are available from the CAS configuration catalog:

    The configuration settings listed below are tagged as Required in the CAS configuration metadata. This flag indicates that the presence of the setting may be needed to activate or affect the behavior of the CAS feature and generally should be reviewed, possibly owned and adjusted. If the setting is assigned a default value, you do not need to strictly put the setting in your copy of the configuration, but should review it nonetheless to make sure it matches your deployment expectations.

    The configuration settings listed below are tagged as Optional in the CAS configuration metadata. This flag indicates that the presence of the setting is not immediately necessary in the end-user CAS configuration, because a default value is assigned or the activation of the feature is not conditionally controlled by the setting value.

    The configuration settings listed below are tagged as Third Party in the CAS configuration metadata. This flag indicates that the configuration setting is not controlled, owned or managed by the CAS ecosystem, and affects functionality that is offered by a third-party library, such as Spring Boot or Spring Cloud to CAS. For additional info, you might have to visit the third-party source to find more details.

  • spring.datasource.continue-on-error=false
  • Whether to stop if an error occurs while initializing the database.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.continue-on-error.

  • spring.datasource.data=
  • Data (DML) script resource references.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.data-locations.

  • spring.datasource.data-password=
  • Password of the database to execute DML scripts (if different).

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.password.

  • spring.datasource.data-username=
  • Username of the database to execute DML scripts (if different).

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.username.

  • spring.datasource.dbcp2.abandoned-usage-tracking=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.access-to-underlying-connection-allowed=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.auto-commit-on-return=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.cache-state=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.clear-statement-pool-on-return=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.connection-factory-class-name=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.connection-init-sqls=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.default-auto-commit=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.default-catalog=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.default-query-timeout=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.default-read-only=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.default-schema=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.default-transaction-isolation=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.disconnection-sql-codes=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.driver=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.driver-class-name=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.enable-auto-commit-on-return=
  • org.apache.commons.dbcp2.BasicDataSource.

    Deprecation status is WARNING without a replacement setting.

  • spring.datasource.dbcp2.eviction-policy-class-name=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.fast-fail-validation=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.initial-size=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.jmx-name=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.lifo=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.log-abandoned=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.log-expired-connections=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.login-timeout=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.max-conn-lifetime-millis=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.max-idle=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.max-open-prepared-statements=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.max-total=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.max-wait-millis=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.min-evictable-idle-time-millis=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.min-idle=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.num-tests-per-eviction-run=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.password=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.pool-prepared-statements=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.remove-abandoned-on-borrow=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.remove-abandoned-on-maintenance=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.remove-abandoned-timeout=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.rollback-on-return=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.soft-min-evictable-idle-time-millis=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.test-on-borrow=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.test-on-create=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.test-on-return=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.test-while-idle=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.time-between-eviction-runs-millis=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.url=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.username=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.validation-query=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.dbcp2.validation-query-timeout=
  • org.apache.commons.dbcp2.BasicDataSource.

  • spring.datasource.driver-class-name=
  • Fully qualified name of the JDBC driver. Auto-detected based on the URL by default.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.embedded-database-connection=
  • Connection details for an embedded database. Defaults to the most suitable embedded database that is available on the classpath.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.generate-unique-name=true
  • Whether to generate a random datasource name.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.hikari.allow-pool-suspension=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.auto-commit=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.catalog=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.connection-init-sql=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.connection-test-query=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.connection-timeout=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.data-source-class-name=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.data-source-j-n-d-i=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.data-source-properties=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.driver-class-name=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.exception-override-class-name=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.health-check-properties=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.health-check-registry=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.idle-timeout=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.initialization-fail-timeout=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.isolate-internal-queries=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.jdbc-url=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.keepalive-time=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.leak-detection-threshold=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.login-timeout=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.max-lifetime=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.maximum-pool-size=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.metric-registry=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.metrics-tracker-factory=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.minimum-idle=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.password=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.pool-name=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.read-only=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.register-mbeans=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.scheduled-executor=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.schema=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.transaction-isolation=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.username=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.hikari.validation-timeout=
  • com.zaxxer.hikari.HikariDataSource.

  • spring.datasource.initialization-mode=embedded
  • Mode to apply when determining if DataSource initialization should be performed using the available DDL and DML scripts.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.mode.

  • spring.datasource.jmx-enabled=false
  • Whether to enable JMX support (if provided by the underlying pool).

    Deprecation status is ERROR with a replacement setting: spring.datasource.tomcat.jmx-enabled.

  • spring.datasource.jndi-name=
  • JNDI location of the datasource. Class, url, username and password are ignored when set.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.name=
  • Datasource name to use if "generate-unique-name" is false. Defaults to "testdb" when using an embedded database, otherwise null.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.oracleucp.abandoned-connection-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-factory-class-name=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-factory-properties=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-harvest-max-count=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-harvest-trigger-count=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-labeling-high-cost=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-pool-name=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-properties=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-repurpose-threshold=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-validation-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.connection-wait-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.data-source-name=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.database-name=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.description=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.fast-connection-failover-enabled=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.high-cost-connection-reuse-threshold=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.inactive-connection-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.initial-pool-size=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.login-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.max-connection-reuse-count=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.max-connection-reuse-time=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.max-connections-per-shard=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.max-idle-time=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.max-pool-size=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.max-statements=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.min-pool-size=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.network-protocol=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.o-n-s-configuration=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.password=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.pdb-roles=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.port-number=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.property-cycle=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.query-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.read-only-instance-allowed=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.role-name=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.s-q-l-for-validate-connection=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.seconds-to-trust-idle-connection=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.server-name=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.sharding-mode=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.time-to-live-connection-timeout=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.timeout-check-interval=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.u-r-l=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.user=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.oracleucp.validate-connection-on-borrow=
  • oracle.ucp.jdbc.PoolDataSourceImpl.

  • spring.datasource.password=
  • Login password of the database.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.platform=all
  • Platform to use in the DDL or DML scripts (such as schema-$platform</code>.sql or data-$platform</code>.sql).

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.platform.

  • spring.datasource.schema=
  • Schema (DDL) script resource references.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.schema-locations.

  • spring.datasource.schema-password=
  • Password of the database to execute DDL scripts (if different).

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.password.

  • spring.datasource.schema-username=
  • Username of the database to execute DDL scripts (if different).

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.username.

  • spring.datasource.separator=;
  • Statement separator in SQL initialization scripts.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.separator.

  • spring.datasource.sql-script-encoding=
  • SQL scripts encoding.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

    Deprecation status is WARNING with a replacement setting: spring.sql.init.encoding.

  • spring.datasource.tomcat.abandon-when-percentage-full=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.access-to-underlying-connection-allowed=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.alternate-username-allowed=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.commit-on-return=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.connection-properties=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.data-source=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.data-source-j-n-d-i=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.db-properties=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.default-auto-commit=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.default-catalog=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.default-read-only=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.default-transaction-isolation=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.driver-class-name=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.fair-queue=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.ignore-exception-on-pre-load=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.init-s-q-l=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.initial-size=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.jdbc-interceptors=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.jmx-enabled=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.log-abandoned=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.log-validation-errors=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.login-timeout=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.max-active=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.max-age=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.max-idle=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.max-wait=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.min-evictable-idle-time-millis=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.min-idle=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.name=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.num-tests-per-eviction-run=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.password=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.propagate-interrupt-state=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.remove-abandoned=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.remove-abandoned-timeout=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.rollback-on-return=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.suspect-timeout=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.test-on-borrow=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.test-on-connect=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.test-on-return=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.test-while-idle=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.time-between-eviction-runs-millis=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.url=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.use-disposable-connection-facade=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.use-equals=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.use-lock=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.use-statement-facade=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.username=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.validation-interval=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.validation-query=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.validation-query-timeout=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.tomcat.validator-class-name=
  • org.apache.tomcat.jdbc.pool.DataSource.

  • spring.datasource.type=
  • Fully qualified name of the connection pool implementation to use. By default, it is auto-detected from the classpath.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.url=
  • JDBC URL of the database.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.username=
  • Login username of the database.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.

  • spring.datasource.xa.data-source-class-name=
  • XA datasource fully qualified name.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$Xa.

  • spring.datasource.xa.properties=
  • Properties to pass to the XA data source.

    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$Xa.

  • spring.session.jdbc.cleanup-cron=0 * * * * *
  • Cron expression for expired session cleanup job.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.flush-mode=on-save
  • Sessions flush mode. Determines when session changes are written to the session store.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.initialize-schema=embedded
  • Database schema initialization mode.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.save-mode=on-set-attribute
  • Sessions save mode. Determines how session changes are tracked and saved to the session store.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql
  • Path to the SQL file to use to initialize the database schema.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

  • spring.session.jdbc.table-name=SPRING_SESSION
  • Name of the database table used to store sessions.

    org.springframework.boot.autoconfigure.session.JdbcSessionProperties.

    Configuration Metadata

    The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.

    Be Selective

    This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.

    YAGNI

    Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.

    Naming Convention

    Property names can be specified in very relaxed terms. For instance cas.someProperty, cas.some-property, cas.some_property are all valid names. While all forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those that might be presented to the system via an external library or framework such as Spring Boot, etc. When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value.S ettings and properties that are controlled by the CAS platform directly always begin with the prefix cas. All other settings are controlled and provided to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the way you intend.

    Validation

    Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. The validation process is on by default and can be skipped on startup using a special system property SKIP_CONFIG_VALIDATION that should be set to true. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.

    Indexed Settings

    CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value. The index [0] is meant to be incremented by the adopter to allow for distinct multiple configuration blocks.